package bean;

public class StudentAndTeacher {
	
	private int id;
	private String s_name;
	private String s_code;
	private String s_phone;
	private int s_age;
	private String s_description;
	private Teacher teacher;
	private int c_num;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getS_name() {
		return s_name;
	}
	public void setS_name(String s_name) {
		this.s_name = s_name;
	}
	public String getS_code() {
		return s_code;
	}
	public void setS_code(String s_code) {
		this.s_code = s_code;
	}
	public String getS_phone() {
		return s_phone;
	}
	public void setS_phone(String s_phone) {
		this.s_phone = s_phone;
	}
	public int getS_age() {
		return s_age;
	}
	public void setS_age(int s_age) {
		this.s_age = s_age;
	}
	public String getS_description() {
		return s_description;
	}
	public void setS_description(String s_description) {
		this.s_description = s_description;
	}
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
	public int getC_num() {
		return c_num;
	}
	public void setC_num(int c_num) {
		this.c_num = c_num;
	}
	public StudentAndTeacher(int id, String s_name, String s_code, String s_phone, int s_age, String s_description,
			Teacher teacher, int c_num) {
		super();
		this.id = id;
		this.s_name = s_name;
		this.s_code = s_code;
		this.s_phone = s_phone;
		this.s_age = s_age;
		this.s_description = s_description;
		this.teacher = teacher;
		this.c_num = c_num;
	}
	public StudentAndTeacher(String s_name, String s_code, String s_phone, int s_age, String s_description,
			Teacher teacher, int c_num) {
		super();
		this.s_name = s_name;
		this.s_code = s_code;
		this.s_phone = s_phone;
		this.s_age = s_age;
		this.s_description = s_description;
		this.teacher = teacher;
		this.c_num = c_num;
	}
	public StudentAndTeacher() {
		super();
		
	}
	@Override
	public String toString() {
		return "StudentAndTeacher [id=" + id + ", s_name=" + s_name + ", s_code=" + s_code + ", s_phone=" + s_phone
				+ ", s_age=" + s_age + ", s_description=" + s_description + ", teacher=" + teacher + ", c_num=" + c_num
				+ "]";
	}
	
	
}
